package com.mj.hzb;


public class SQLUtil {

	public int ReadOrWrite(String sql){
		if (sql.indexOf("update")>=0||sql.indexOf("insert")>=0||sql.indexOf("delete")>=0) {
			return GlobalCont.WriteOnly;
		}else{
			return GlobalCont.ReadOnly;
		}
	}
}
